﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Marmat.FrameWork
{
    /// <summary>
    /// 为创建Marmat.WinForm.IHostBuilder的实例提供了方便的方法
    /// 与预配置的缺省值。
    /// </summary>
    public static class Host
    {
        /// <summary>
        /// 初始化Marmat.WinForm.IHostBuilder的实例
        /// </summary>
        /// <returns></returns>
        public static IHostBuilder CreateDefaultBuilder()
        {
            return CreateDefaultBuilder(Array.Empty<string>());
        }

        /// <summary>
        /// 初始化Marmat.WinForm. IHostBuilder的实例
        /// </summary>
        /// <returns></returns>
        public static IHostBuilder CreateDefaultBuilder(string[] args)
        {
            return new DefaultHostBuilder();
        }
    }
}
